package com.jimline.phonebook.datacontroller;

import java.util.ArrayList;

public class DataManager
{
	private static DataManager m_inst = null;
	private ArrayList<CallRecordItem> m_callRecordList = new ArrayList<CallRecordItem>();
	private ArrayList<ContactItem> m_contactList = new ArrayList<ContactItem>();
	
	public static DataManager instance()
	{
		if (null == m_inst) {
			m_inst = new DataManager();
			m_inst.init();
		}
		return m_inst;
	}
	
	public DataManager()
	{
		
	}
	
	public void init()
	{
		
	}
	
	public ArrayList<ContactItem> getContactList()
	{
		return m_contactList;
	}
	
	public ArrayList<CallRecordItem> getCallRecordList()
	{
		return m_callRecordList;
	}
	
	public void addRecord(CallRecordItem item)
	{
		m_callRecordList.add(item);
	}
	
	public void addContactoer(ContactItem one)
	{
		m_contactList.add(one);
	}
}